//
//  WUNativeAdDataObject.h
//  AdSDK
//
//  Created by laole918 on 2020/11/28.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, WUNativeAdCreativeType) {
    CREATIVE_TYPE_ADX_TXT = (1 << 24) | 1,//TXT 纯文字
    CREATIVE_TYPE_ADX_IMG = (1 << 24) | 2,//IMG 纯图片
    CREATIVE_TYPE_ADX_HYBRID = (1 << 24) | 3,//HYBRID 图文混合
    CREATIVE_TYPE_ADX_VIDEO = (1 << 24) | 4,//VIDEO 视频广告

    CREATIVE_TYPE_GDT_2IMAGE_2TEXT = (2 << 24) | 1,//通过 `iconUrl` 和 `imageUrl` 获取图片地址
    CREATIVE_TYPE_GDT_VIDEO = (2 << 24) | 2,//表示包含视频素材
    CREATIVE_TYPE_GDT_3IMAGE = (2 << 24) | 3,//三个小图
    CREATIVE_TYPE_GDT_1IMAGE_2TEXT = (2 << 24) | 4,
};

@interface WUNativeAdDataObject : NSObject
{
@package;
    NSString *channel;
    NSDictionary *infodic;
    int interactionType;
    NSString *clickUrl;
    id gdtAdData;
}
@property (nonatomic, readonly) int sdktype;

@property (nonatomic, copy, readonly) NSString *title;

@property (nonatomic, copy, readonly) NSString *desc;

@property (nonatomic, copy, readonly) NSString *imageUrl;

@property (nonatomic, readonly) NSInteger imageWidth;

@property (nonatomic, readonly) NSInteger imageHeight;

@property (nonatomic, copy, readonly) NSString *iconUrl;

@property (nonatomic, copy, readonly) NSArray *imageUrls;

@property (nonatomic, readonly) NSInteger creativeType;

-(instancetype)initWithInfo:(NSDictionary *)infodic gdtAdData:(id) gdtAdData;

-(instancetype)initWithInfo:(NSDictionary *)infodic zyAdData:(NSDictionary *) zyAdData;

@end

NS_ASSUME_NONNULL_END
